package com.jeethink.erp.shop.mapper;

import com.jeethink.common.core.domain.entity.TbShop;
import com.jeethink.erp.shop.domain.TbShopVo;

import java.util.List;

/**
 * 店铺树结构Mapper接口
 * 
 * @author ypr
 * @date 2021-05-26
 */
public interface TbShopMapper 
{
    /**
     * 查询店铺树结构
     * 
     * @param shopId 店铺树结构ID
     * @return 店铺树结构
     */
    public TbShop selectTbShopById(Long shopId);

    /**
     * 查询店铺树结构列表
     * 
     * @param tbShop 店铺树结构
     * @return 店铺树结构集合
     */
    public List<TbShop> selectTbShopList(TbShop tbShop);

    /**
     * 新增店铺树结构
     * 
     * @param tbShop 店铺树结构
     * @return 结果
     */
    public int insertTbShop(TbShop tbShop);

    /**
     * 修改店铺树结构
     * 
     * @param tbShop 店铺树结构
     * @return 结果
     */
    public int updateTbShop(TbShop tbShop);

    /**
     * 删除店铺树结构
     * 
     * @param shopId 店铺树结构ID
     * @return 结果
     */
    public int deleteTbShopById(Long shopId);

    /**
     * 批量删除店铺树结构
     * 
     * @param shopIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteTbShopByIds(Long[] shopIds);

    /***
     * 查询所有店铺库存信息
     * @param tbShop
     * @return
     */
    public List<TbShop> selectShopChartList(TbShop tbShop);

    /**
     * 查询当前月每个店铺销售总额
     * @param tbShop
     * @return
     */
    public List<TbShop> selectMonthList(TbShop tbShop);

    /**
     * 搜索销量排名前5的商品名称
     * @param tbShop
     * @return
     */
    public List<TbShopVo> selectCommodityChart(TbShopVo tbShop);

    public List<TbShopVo> selectVoChart(TbShopVo tbShopVo);

    public TbShopVo findCountSize(TbShopVo tbShopVo);

}
